{% extends 'home/base.html' %}
{% block content %}
    <div class="container">
        <ul class="list-group list-group-flush">
            {% for item in result %}
                <li class="list-group-item" onclick="location.href='/que_detail/{{ item.que_id }}'">
                <h5>{{ item.que_content }}</h5>
                <p class="text-muted">{{ item.que_create_time }}</p>
                </li>
            {% endfor %}
        </ul>
        {% if not result %}
            <div class="text-center mt-5">
                <img class="rounded" src="{{ url_for('static',filename="imgs/empty.png") }}" alt="">
                <p class="text-muted">暂无搜索结果</p>
            </div>
        {% endif %}
    </div>
{% endblock %}